package com.feiyuan.book.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.feiyuan.common.utils.PageUtils;
import com.feiyuan.common.utils.Query;

import com.feiyuan.book.dao.BookChapterDao;
import com.feiyuan.book.entity.BookChapterEntity;
import com.feiyuan.book.service.BookChapterService;


@Service("bookChapterService")
public class BookChapterServiceImpl extends ServiceImpl<BookChapterDao, BookChapterEntity> implements BookChapterService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<BookChapterEntity> page = this.page(
                new Query<BookChapterEntity>().getPage(params),
                new QueryWrapper<BookChapterEntity>()
        );

        return new PageUtils(page);
    }

}